<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100%;
            height: 300px;
            /* 背景图片 */
            /* 图片小于盒子背景会平铺 */
            background-image: url(./images/1.jpg);
            /* 如果只需要一张背景不平铺 */
            background-repeat: no-repeat;
            /* 设置背景图片的大小 */
            background-size: 100px 100px;
        }
    </style>
</head>

<body>
    <!-- 背景图片 -->
    <div>

    </div>
</body>

</html>